<div class="col-lg-12">
    <!--当前位置 start-->
    <div class="row">
        <div class="col-lg-12">
            <ol class="breadcrumb">
                <li><i class="fa fa-home mrg-r-sm"></i>首页
                </li>
                <li class="active"><span>会员卡信息页面</span>
                </li>
            </ol>
        </div>
    </div>
    <!--当前位置 end-->

    <!--代码写在这里-->
    <div class="row">

        <div class="col-lg-12">
            <div class="main-box">
                <header class="main-box-header clearfix">
                    <h2>会员卡信息</h2>
                </header>
                <div class="main-box no-header clearfix">
					<div class="main-box-body clearfix" >
						 <form class="form-horizontal" role="form">
	                        <div class="form-group">
	                            <label class="col-lg-2 control-label"></label>
	                            <div class="col-lg-5">
	                               <input type="text" class="form-control" ng-model="search.card_id" placeholder="请输入会员卡号">
	                            </div>
	                            <a class="btn btn-success" ng-click="searchCard(search)">
									 <i class="fa fa-search "></i> 搜索 
								</a>
	                        </div>
                       </from>
						<div class="table-responsive" ng-if="search.card_id != undefined">
							<table class="table table-hover table-striped text-center">
								<thead >
									<tr>
										<th class="text-center"><span>会员卡号</span></th>
										<th class="text-center"><span>持卡人</span></th>
										<th class="text-center"><span>资金</span></th>
										<th class="text-center"><span>创建时间</span></th>
										<th class="text-center"><span>会员卡状态</span></th>
										<th class="text-center"><span>会员卡类型</span></th>
										<th class="text-center"><span>操作</span></th>
									</tr>
								</thead>
								<tbody >
									<tr role="row" class="odd"  ng-repeat="item in list">
										<td class="sorting_1">{{item.card_id}}</td>
										<td>{{item.member.name}}</td>
										<td>{{item.fund}}</td>
										<td>{{item.create_time}}</td>
										<td>{{item.status}}</td>
										 <td>{{item.type}}</td>
										<td style="width: 30%;">
											<!--<a  class="table-link" href="#/card/edit/{{item._id}}">
												<span class="fa-stack">
												<i class="fa fa-square fa-stack-2x"></i>
												<i class="fa fa-pencil fa-stack-1x fa-inverse"></i>
												</span>
											</a>-->
											<a class="btn btn-info" href="#/card/setup/{{item._id}}">设置</a>
											<a class="btn btn-primary" href="#/card/recharge/{{item._id}}" ng-if="item.member.name != undefined && item.status == 1">充值</a>
											<a class="btn btn-danger" href="#/card/consume/{{item._id}}" ng-if="item.member.name != undefined && item.status == 1">消费</a>
											<a class="btn btn-warning" href="#/card/history/{{item.card_id}}" ng-if="item.member.name != undefined && item.status == 1">消费记录</a>
										</td>
									</tr>
								</tbody>
							</table>
						</div>
					</div>
				</div>
            </div>
        </div>
    </div>
    
    
    
    